package com.grades.springboot.service;

import com.grades.springboot.entity.Result;

import javax.servlet.http.HttpServletRequest;

public interface LoginService {
    Result<?> loginById(Integer id, String password,String code,String userType, HttpServletRequest request);

    Result<?> loginByEmail(String email, String code,String userType);

    String newToken(Integer id,String userType,String name);

}
